<div class="modal fade zanpian-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="display:none;">
  <div class="modal-dialog clearfix">
    <div class="modal-content clearfix">
    <div class="modal-header">
      <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
      <h5 class="modal-title">{notempty name="info.lines_id"}编辑{else /}添加{/notempty}台词</h5>
    </div>
   <div class="modal-body text-center">
   <form class="form-horizontal" id="modal-form" action="{:zanpian_user_url('user/center/addlines')}" role="form" onsubmit="return false;">
   <input type="hidden" id="lines_id" name="lines_id" value="{$info['lines_id']|default=''}">
   <input type="hidden" id="lines_vid" name="lines_vid" value="{$info.vod_id|default=''}">  
            <div class="form-group">
              <div class="col-md-6 col-sm-6 col-xs-12 mb-15">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default">视频名：</span>
                </div>
                <input class="form-control" name="vod_name" id="vod_name" type="text" placeholder="视频名" value="{$info.vod_name|default=''}" readonly>
</div>
              </div>
              {empty name="role.role_id"}
              <div class="col-md-6 col-sm-6 col-xs-12 mb-15">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default">角色名：</span>
                </div>
<input  class="form-control txt" name="lines_role" id="id_input" type="text" placeholder="演员名" value="{$info.lines_role|default=''}">
<span class="input-group-btn"><button type="button" class="btn  btn-primary btn-flat" id="get_role">选择</button>
</span>
</div>
              </div>
           <div class="col-md-12 col-sm-12 col-xs-12 mb-15" style="display:none; margin-top:15px;" id="role_list">
            <select id="id_select" class="form-control" onChange="selectOnChangeFunc()">
{volist name="role_list" id="zanpian"}
  <option value="{$zanpian.role_name}" {eq name="zanpian['role_name']" value="$info['lines_role']"}selected{/eq}>{$zanpian.role_name}</option>
{/volist}
</select>               
            </div>
            </div>
            {else /}
               <div class="col-md-6 col-sm-6 col-xs-12 mb-15">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default">角色名：</span>
                </div>
<input  class="form-control txt" name="lines_role" id="id_input" type="text" placeholder="演员名" value="{$role.role_name|default=''}" readonly></div>
              </div>
            </div>           
            {/empty}
            <div class="form-group">
             <div class="col-md-12">
               <textarea class="form-control txt" name="lines_content"   placeholder="台词内容" style=" width:100%; height:200px">{$info['lines_content']}</textarea>
              </div> 
              </div>             
            <div class="form-group">
              <div class="col-md-4 col-sm-4 col-xs-6">
                <input class="form-control txt" data="validate" name="validate" type="text" placeholder="验证码">
              </div>
              <div class="col-md-3 col-sm-4 col-xs-2"><span id="validate-zanpian"><label><img class="validate-img" src="{:url('home/verify/index',array('t'=>time()))}"></label></span></div>
            </div> 
        <button type="submit" class="btn btn-success" id="add-modal-submit">提交</button>
      </form>
    </div>
</div>
<script type="text/javascript"> 								  
        function selectOnChangeFunc() {
            document.getElementById('id_input').value = document.getElementById('id_select').options[document.getElementById('id_select').selectedIndex].value;
        }
</script>